package com.fuqi.android.zhongcai.utils;

import com.fuqi.android.zhongcai.sql.Worker;

import java.util.Comparator;

/**
 * Created by juner on 16/07/22.
 */
public class WorkerSort implements Comparator<Worker> {

    /**
     * a-z排序
     */
        @Override
        public int compare(Worker lhs, Worker rhs) {
            String a = lhs.getPinyin().substring(0, 1);
            String b = rhs.getPinyin().substring(0, 1);
            return a.compareTo(b);
        }



}
